#ifndef __AW_NOOSLearnerBrainSocial
#define __AW_NOOSLearnerBrainSocial

class AW_NOOSLearnerBrainSocial : public AW_NOOSLearnerBrain {
	
public:
	AW_NOOSLearnerBrainSocial(Ontology *O,FTKBase *Memory,FTKBase *CB,bool pause);
	AW_NOOSLearnerBrainSocial(FILE *fp,Ontology *O,FTKBase *Memory,FTKBase *CB,bool pause);

	~AW_NOOSLearnerBrainSocial(); 

	virtual bool load(FILE *fp);
	virtual bool save(FILE *fp);

	virtual bool is_a(char *c);
	virtual bool is_a(Symbol *c);

protected:

	virtual List<Symbol> *get_friends(void);
	virtual bool process_message(AW_Message *m,FeatureTerm *content);

	FeatureTerm *solve_problem_social(FeatureTerm *problem,Sort *sort,Symbol *my_name,bool test);

	FeatureTerm *solve_problem_IBA_convener_social(FeatureTerm *problem,Sort *sort,Symbol *my_name,bool test,List<Symbol> *others,FeatureTerm *initial_JER);
	void solve_problem_IBA_other_social(FeatureTerm *problem,Sort *sort,Symbol *my_name,Symbol *convener_name,bool test);


	List<Symbol> m_friends;
	float money;
	FeatureTerm *bet_solution;
	float bet_amount;

private:

}; /* AWNOOSLearnerBrainSocial */ 

#endif

